added API docs in the README