API documentation

The new API folder contains API documentation grouped by object and containing each function, with description, usage and examples.