added debug.log, updated logfile