[doc] document all the API