changed Nrec to range of neurons rNrec from which to record the states for sparse simulation