Refactored config into a singleton class. Some minor bug fixes.
Adding missing Config class.