Added file export/import as well as tests for these