Added connectEventList and disconnectEventList methods

Also updated the example addon.