Increased precision for pi and e constants.

Pi and e are now to 50 digits, for more accuracy, but may be reduced
later if unnecessary. Minor changes to main.