added autoload.php file; also made minor corrections to source files