adding documentation for registerRoutes()