Print particle number to output, and make it so that the number of spheres generated is the minimum of the number of spheres requested and the number of nodes in the particle, preventing an infinite search for more nodes. This necessitated the particle number print since now the particle have variable number of spheres.