refactored controller, index view, routes and readme