fixed divide by zero bug when displaying percentages
lecture notes
merged