Added the output and fixed two bugs

Added the parseInt() function to the addition for totalReceived and
totalReceivedBroken since the numbers were being passed to the addition
as strings and not as integers