Fix misspellings in docs, comments, and strings.

I fixed various misspellings.
We should go with AE. Behaviour is enforced upon us but I would say AE is more common (and I write in AE format mostly).