Fixed a bug which could have caused the Ptnum to be duplicated for particles. Added a destructor for the ParticleSystem.