Added comments to main events.js file.