cleaning up and documenting the router stuff
Merge pull request #3 from smw1218/router_cleanup

cleaning up and documenting the router stuff