Handle case in which no new message exist
Fix getHeaders and getName

getHeaders was stripping off the last word of the sentence