Refactored neural_network_training into just the neural network part (generalized) and moved the data input/formatting stage to the whistler_network_training function.  Also use a function to initialize the neural network parameters.