Rewrite sprinkler particle code. Fixes #27 Closes #34