Refactoring of getRecommendations.py and Outputcontrol implemented