Added perceptron training, bias inputs, and an example.