Config.php updated

Added globals and spl_autoload_register.