cleans up Router
creates working example