adds action potential to neuron constructor