Finished replacing ParticleManager with the functional approach.
Merge pull request #2 from saxonmatt/functional

Finished replacing ParticleManager with the functional approach.