finishes refactoring

0. fixes router bug
0. complete all tasks toggle
0. more source docs