I would be interested in a photo or description of your drive setup, so I can make better sense of the code.
Nontheless, I very much like your implementation - looks nice and clean, and hope to one day be able to make use of it as a teaching tool. Once I really understand it, that is...
Don