added a command line option to save some diagnostic intermediate data products (PSD, noise, inj)