Updated configuration with new error logging and emailing options