code cleanup and rating code moved from hotel controller to model