Improve docs on how to customise an app

- Made instructions on using a custom template more expliciy.  Should be
  better for new users.
- Fixes a few typos and mistakes in the code examples.

This commit is squash of pull request #640.