Added documentation for generating routes