#1154: Fixed history files being corrupted
Improved coding style