added email-word feature.

cleaned up some old and badly-formatted code.