New save output

Saving diffraction intensities into different file formats
This needs a prose description of what it does