Increased precision and implemented new calculator.

Removed some bugs for larger decimal numbers.