Cleaned up documentation, changed the averaging function a little. Now instead of averaging percentages within a category,
it divides the total actual marks by the total possible marks. I left the old function in place in case anyone prefers it.