support for daily history backup, misc changes

Support for storing a daily backup of the history file.
Move "SETTINGS_FILE " to the class
Reduced indent to 2 spaces