dump-type: add documentation, refactor interfaces.
dump-type: add doc, refactor variable names.
dump-type: add doc.