added state variables and gradient to particle
added comments for quadratic interpolation