Refactored some code, made a ParticleFilter class, and got rid of unnecessary files