added API docs