1.0.0 updates

Assorted fixes and enhancements. Comments, @kainosnoema?
Ah, OK. I moved the root key generation above, so this should be fixed.