Group coordinates by particle
Split output into separate lines