Darn. Any specific questions? I was certainly trying for readability.

Just a note to myself: need to be more consistent about tabs vs. spaces in this file.