Check that id coming into publication is a string
Fix repeated emails by merging results
Small formatting fixes