fixed bug in test_router.html
some minor changes to router
resolve merge conflicts
Added documentation to readme. Set up an examples folder. Tested codes and fix some bugs.