Added lots more logging to a new property retLog

The new property, retLog, should hopefully help make debugging one of
these scripts much simpler.
Improved logging of details about email notifications sent