Settings are now saved/loaded

Settings are saved and loaded via a config file
Code cleanup