Added some small comments to widget code