- More documentation cleanup

- Refactor the reference app.
- Make it pretty.