Docs: Add more API docstrings.