Work on the email class and GUI

with a new method for the repository; some form changes