added API docs.