Fixed some comment errors and added suport for getting at the route from templates