In addition to the above comments, I found the following explanation of the workings of quad encoders to be excellent, and successfully wrote my own encoder code for an off-season project with its help:
http://abrobotics.tripod.com/Ebot/using_encoder.htm