added calculation of quality and quantity scores for clinics, and displaying in template