Fixed error with output in neuron

Problem was that the output had a weight of 0 thus no change in the
neuron ever got far.

Added console write lines in order to make perceptron trainer easier to
debug.