Correct various typos in the text and examples in the English docs.

I corrected a few typos in the examples. I also reworded some sentences to make them a bit easier to understand without changing their meaning.