Added legacy backprop function

Also updated variable names to be more consistent with backprop!