More bug fixes, the settings file is now properly read and autogenerates
if the file is missing.