Commented and structured ParticleSystem class