added test for MailSender,
added documentation to controller
removed unused imports
added missing configuration parameters