fixed logging objects to log file
logging still not really complete.  errors and discrepencies between log file and console.log.