Use consistent spelling, fix typos.

For the most part, the documentation uses "british" spelling of behaviour and initialise, so changed the few instances that used "american" spelling to match.  I found a few other spelling errors and typos as well.