Extracted a lot of the config file methods to a new class (config.java)