Changed make_particles. Now it writes to string