Modified functions for front end. Moved around routes to match readme.io