added a mode for readParticles(int mode) : READ_POS | READ_VEL | READ_IDS