Completed first version of init() function in estimator module