Move documentation into docstrings