monte carlo - bug fixes + couple tests