Important: backpropagation had an error, missing derivative term, now fixed!