New save output

Saving diffraction intensities into different file formats
I think this can silently overwrite/discard user input which is something we shouldn't do.