fix syntax errors.  Add state to router.
Merge pull request #18 from kmeurer/master

fix syntax errors.  Add state to router.