Cleaned up code and Fixed Config File Loading

I made a class for parsing the config file and getting the location object out of it. Also if on launch the config file does not exist, It creates one with the defaults.