Improved api documentation