Provide json and data filenames with one single function.
save all the needed fields in the json file.
Remove unneeded pointers to MEs.