Refactored Config

Refactored Config file into a config class. Still need to refactor the
uses of the config class into using the config class.