Clarified parts of the law of large numbers code