Fixed log file name; enhanced logging