Make package work on windows.

There are a ton of commented out debug statements, but the real work is done in setting().