A comma can be used: to separate items in a list; to change the meaning of a sentence (e.g. ‘I told him, honestly. I told him honestly.’); to avoid ambiguity; before certain clauses; after a subordinate clause; after a fronted adverbial; and to seperate the name of the person being spoken to from the rest of the sentence.