Updated perceptron to save all output values.
Small tweaks.