Added backpropogation and complete unsupervised training