Added a config class and its instance to the Main class.