v1.31 changes

Fixed several issues with test type '0' (exam), such as not calculating
and displaying correctly in the pdf. Also, changed data structure for
storing student's scores into an object structure, making the code
easier to read. All major constants have been moved to separate class
for easy access.