Fixing some bugs with last commit. Adding error page.
Moving code to root of repo