Refactored configuration loading to be more centralized and convenient through the use of a config file