Docs added
Moved docstrings to API.md
Moved docstrings to API.md