MDL-47494 ddmarker: NOBUG corrected grading equation to include penalty and clarified code
MDL-47494 ddmarker: NOBUG corrected grading equation to include penalty and clarified code

also removed debug code

dilawar/moodle