Some minor changes.  Fixed a bug in the emailer.  Added more logging functions.