New save output

Saving diffraction intensities into different file formats
Why is this function doing both the validation _and_ the path formatting?