fixed avgEstimator to process mfs files, some variable refactoring