Added file export/import as well as tests for these

Underscore prefixes are for field names.