add some api documentation.