Implemented program logger to save output of program
fixing compiler errors