Doc finished (only documented api.js, widget config not documented).
Api.js modified to match the doc.