added seed to the random number generator, made the output better when verbose = true
replicated the original example