Got the weight update function working.

Takes the error, weighted sum, and inputs to update all of
the layer's nodes' weights.