Added MathHelper class, moved roundThreeDecimals

Other minor fixes too