added comments to the engine class