Fixed output, added button states & utility class.

Fixed output of decimals to match what a calculator displays. Added
button states so that buttons change color when pressed. Encapsulation
of formatting functions into a utility class.