get cone working and add max iters
moved gcd out of examples