Refactor to use more methods to build and send logs and emails so as to separate concerns in methods more
Use parameters in constructor and additional setters instead of embedded constants to aid in reusability for different projects and add way to use a default controller other than index
Fix typo in name of error constant