added api
added API documentation