Aded some docs.
Updated docs and js for widgets.