updated ParticleGrid.py to write header & footer, but is currently commented out