fixed autoloader

mfixed syntax errors in index.php that fixed the auto loader, and made
similar changes to class.home.in.php and class.view.inc.php