add initial draft of API documentation