added emails.py, working on improved email functionality.