Add function to write raw data to file
The function must take a path and be able to write aggregated scans or individual ones. The individual scans should be written to individual files.
The function must take a path and be able to write aggregated scans or individual ones. The individual scans should be written to individual files.