Re-commit partial completion of #42: Refactor docstrings according to PEP 257