Added stochastic activation for each neuron and a basic training algorithm that is untested.