Adding logging statements.
Finishing up the mail server