Changed integers to unlimited precision.
Clean up main program.
Turned If into Case.