New functions on the 'ControllerBase' class. Make use of 'EmailHelper' service. Converted 'main' controller to a controller as a service. Removed some trailing spaces more. Made some bugfixes.