Fix 22 Sphinx warnings.

Only the usual 6 warnings are still emitted. Among the warnings fixed were:

* References to modules that did not exist.
* Missing blank lines before code blocks.
* Missing blank lines before and after nested lists.
* Spuriously indented text.
Merge pull request #1126 from Ichimonji10/docs

Fix 22 Sphinx warnings.