modify grade report to put some statistics in
new functions for updating a file