finish review of stochastic module #224
pass tests, close #224