added API docs in README