partway implemented ML file dumper.

Nowhere near done yet - just pushing to fork so I can show whats there
to others.