Fixed some long standing errors on home page. Removed dead code.