update to backprop; now trains logistic regression at teach step based on new errors calculated from gradients