Refactoring lots of variables for clarity.
Got the settings all loading and saving from config files.