Updated api documentation.