made use of the =! for the tally system.
added comments explaining the new bits