Reordered methods and made them more modular.  Changed permutation
output to scientific notation.
Added a check to see if scientific notation was used needlessly (i.e.
for numbers where 'xxxxxe0' would be output)