[BUG #8522] convert to proper JSDoc
[BUG #8522] ignore api dir
[BUG #8522] correct setup.js