Modular API for RF and minor fixes

- Modular API for RF and BaggingMachine
- API examples for RF
- minor changes in RF