Add student email to the results spreadsheet   #2582

Fixes for adding student email next to student name in CSV file generation
introduce a local variable to explain what the condition means