API Documentation drafting #1

- Added docs/api.rst
- Structuring sphinx comments