save config on rule update
Added missing argument for removeListener
Remove removed rule from config, small code fixes
Updated version