moved RF code to use WeightedEnsembleModel class