Grammar fixes.
Align code in docs with that in the src directory.