Added initial support for loading config loading class, fixed up some errors in other files