Write public API documentation