Added missing scope to functions
Replaced usage of deprecated class
Removed the pop-up when editing an element to conform to Moodle standards
Corrected error messages regarding width and height for the image element
Only call definition_after_data when we are editing an element so that we know data exists
Set default width and height for the image element
Introduced the border element
Set a date and grade to display when previewing a customcert
Introduced the course name element
Introduced the category name element
Removed strings that were included when displaying a grade element

It may not be the case where everyone wants the name of the grade item to be displayed on the page next to the grade. However, if they do they can simply add another element to show the desired name.
Removed underscore from variable name
Introduced the teacher name element
Removed unnecessary conditional check in edit_form.php
Introduced the grade item name element
Placed long language strings on to two lines
Some trivial changes to lib.php to conform to Moodle coding guidelines