update comment on index.js and generate api.md