corrected particle assignment; cleaned up and commented KNN tests