Added logging
Updating emailer config
Got all tests working