finished first draft of API docs