grade.pl: added code to check class and test type for each student, and
	  improved HTML table reader to show Sub and Rec instead of P4
	  and P5