added API docs to README