Added comments to controller.js and fixed constants in renderer.js.