Refactored api documentation