Specify precision (decimal places) in random number generator; fixed typos in comments