fixed code complexity in router controller, start of rdoc documentation in router controller