Whitespace fixes.
Docstring formatting and cleanup.
Move imports to the top.
Increase coverage as much as possible.
Don't import crypto functions by default.
Remove unwanted .directory file.