Added necessary files and structure for unit testing. cleaned up some code on index page.