Moved functions behind private and cleanup.
Fixed includes and forward declarations.
Moved comments to correct place.
Reorganized public member functions.
Comment cleanup.
Moved function definition into source file.
Refactored out loading config into own class.