Replaced file_exists with is_readable
Replaced __autoload with spl_autoload_register.