v2.2.3 minor updates for ML method
v1.0 Functional version for ML and Bayesian