used rewind statement in halofind_particles.f90 to write nhalo to header