Implemented program logger to save output of program