Some stuff for calibrate_wavelength_scale(). Also added in
feature to input list of flagged good/bad frames.