Changed ParticleSystem::dumpParticles to write to an output file instead
of the screen.