Initial review

The most recent commit message is so accurate.

Also, death to global variables! :-)