Add backpropagation code to kernel.
Add a header comment to the backprop kernel.