Tidy up docstrings to clear Sphinx warnings.