changed dW to be consistent for X and M
Merge remote-tracking branch 'origin/milstein' into candace_dev