add the possibility to change the number of particles dynamically with message <numberOfParticles N> for the Max object