Add function averageRating in League Model, add some details in templates