Added 'safe' tag to comname, updated genreport

added the |safe to the comname in genreport to prevent XSS, also updated
the manner in which the genreport functionality worked, it was dumb :P