minor typos/spelling/corrections

minor typo/spellings/semantics correction on err and debug msgs