First draft of API documentation