added API docs
updated README