Added ParticleEngine along with Particle handling routines
Fixed numerous bugs and compiler errors