Modified smooth_spec & read_spec to deal with missing spectra in input.