Added Perceptron and some additional messages.

Training the perceptron took around 45 seconds on my computer. It seemed
to test correctly but it needs to be tested with David's microphone.