Fixed threshold module, completed calculation of derivatives for backpropagation.