added more in depth comments to level.js