api.js minor changes.
working on doc.js
Working on the doc.