A second method of measuring the encoder using interrupts.  It works, but the accuracy in comparasion to the previous method will be determined when mounted to the real bot.  Please note that even though the interrupt number is 0, this corresponds to the endcoder A signal being attached to digital pin 2.