Made the entire simulation deterministic based on the seed.
Made minor code improvements.
Merge pull request #2 from DanielGibbsNZ/master

Added better randomness and tidied up code.