Removed "to:" from root directive and fixed typo ":to"

`root :to` is invalid syntax
`root to:` is valid, but the generated routes file omits `to:`