Remove the setting of an env variable from package.json
Clarify comments
Remove routing logic
Add router logic to it's own directory