correct rounding of grades and remove debug printing