Replaced hard coded variables in neural network with the ability to automatically determine output labels and the requirement to specify a hidden layer size.