Added -dump flag
Added a json dumping command -dump
Merge branch 'dump_flag'