Fix bug where CF predicted ratings outside [1,5]
And other small fixes