fixed remaining bugs in mvd_export. Seems to work.