Improved the particle initialization routine and the particle shear routine.