additional MAth types used in MoGs and  forked, modified and cmaked code from FADBAD 1.4