Printing to log file, fixing up settings file loading and saving.