added corrected Bt, added moving average smoothing