Changes to how routing works

- object property renamed to class
- function specified in the same way as class instead of an array
Changes to the demo route
Simplify config
Additions to the documentation