Redid the coreclass, so it loads the config.php automatically