added code and pseudocode to some functions in ParticleFilter