added dump command (closes #7)