Updated logging and removed pdb

also updated email templates slightly