added code comments of understanding to level.js