Fixing basic bugs. Index page now loads.