Fixed Config problem, added several methods and tests to ModuleLoader, which now saves the state in the config.