refactored HomeController, added email functionality, added configuration file for private variables