added readstep and addParticle
fixed error in addParticle