Added history file to config
Changed to use readlines built in  history functions