Clean up and initial debug log file support
More clean up
Initial debug log file support
Program now logs events to log file
Implemented writing to debug log file with updated datetime format. Usage: DebugMsg with 3rd parameter set to true
Updated debug file and preparing to merge with master branch