Fix some developer docstrings and add to sphinx docs.

[ci-skip]