added autoloader and removed require_once commands