Finished basic particle effect generation.
Refactored code a bit.