New save output

Saving diffraction intensities into different file formats
The function does not have a return.