Fixed backprop and added classification functionality to general networks. Updated training and the tutorial accordingly.