Don't spew to stderr, spew to a file.
Misc improvements