Comments and change print() to write_data().
Move ParticleState struct to own file; add params to write_data().