Code cleanup

fixed output of log file