Fixing some bugs in mtrace. Also, adding _dops_export()
Improvements to visualization script