readme: add api documentation