Updated doc/api.js to reflect new changes
Updated Documentation