Added settings to widget, and bug fix.