added comments
added comments to events.js