Fix the typo in the earned_credits variable name.
Call the correct method for effeciently loading addresses.
Fix the formatSuffix() method
Fix an error when attempting to write the quiz report.

fputcsv requires the second parameter to be an array, and Earned credit row is returned as null if there is no address to report.
Set the file base from the getFileBase() method