refactored sendEmailFileAdded and sendEmailFileChanged to sendEmailNotification. notification class
just switch the template depending on cmd