Neuron simulation and fitting code