Implemented basic home and error route and refactored