Using a set (again), before writing to file 'emails.txt' in order to get rid of duplicate emails.