Fix a variety of Sphinx errors

Fix incorrectly delimited code blocks and class references. Nothing special.
Merge pull request #1229 from Ichimonji10/sphinx

Fix a variety of Sphinx errors