added api documentation