some bugs fixed in widgetFactory and README added