generalized continued fractions now work.

still need to improve organization