Final first draft comments added to engine.js