updated propagate

wrote some backprop code. hopefully this will be ready to test soon.