Refactored events: function (event) - only one parameter needed. Also mad it backward compatible.
Fixed issue #217