added baseline correction and smoothing, still 2 baselines to go