Fixes to the settings file, added new functions, added a new setting.