Added better way of specifying routes and added documentation to explain this