Additional comments added to engine.js