ENH: added check if the output file already exists and only blow it away if explicitly asked to
ENH: two functions one to validate the inputs and other to create a file path to save output intensities
ENH: changes according to commits
ENH: changes according to the comments