Added assertions for max number of segments and synapses