Refactored NeuralLayer and Neuron