Rework implementation to be class based.
Add new dump_nsdata and tempdir commands.
Add documentation.