Modified to save smoothed spectrum, instead of re-saving original file