Ng modularization and routing

Closes #114
Closes #115
Closes #112 
Closes #87 
Closes #88