Moved docstrings to API.md