Improved random number generation and wrote some simple shell scripts for testing the model