Fix some typos

I've fixed a few typos in the documentation, and updated an example which hadn't been updated.