Add docblocks to MainEngine.php file