reimplemented reordering of particles
updated docs