added gain_calc.py and spectral fits files