Change some log messages and fix writing to config file