Added output for the unit.
Added more of the algorithm.
Implementing backprop.
Partially working.