added the same email functionality to the case when the entire class is selected.  added some comments.