Modified main.py to give error message if nonexistant or corrupt history filee