resolved #6, autoloader now uses spl_autoload_register