Added a train function to make training the network easier
Individual neuron error generation function