add API docs to README