a few style tweaks to dumper code (#1)
#1: fix a bug I added and add doc paragraph