start implementing checkCGBness function in mcgbcheck.lib