Made some major improvements to the routing system
Added documentation for the routing system