refactored a few Brain and Neuron methods