edited route. added sample code and comments