Spellcheck of docs, a few minor changes
This PR continues my read-through of the docs, the previous PRs submitted are #18941 and  #18948.

The following edits have been made:
- Missing periods and colons added before introducing code examples.
- Increased number of function references (clickable links).
- Cleared up a few sentences which I found unclear.

Feedback is welcome.