Fixed some stuff in the particle emitter and added some comments.