Fixed error in E expansion formula
Reimplemented cont-frac function using decrementing index