Started writing API documentation.