added api docs