Added comments

- Added more comments to source code
- Changed function "winMessage" name to "win" in memory_events.js