fixed up division a bit and got gcd, lcm working