Added readHistory, writeHistory. Removed my logger() and printError()