Added comments to engine control code