Export to File

"Export Domain to File" is code complete and working after a few tests.
Needs more robust testing.