A comma is used in sentences when you want to add some additional information related to the main clause without starting a new sentence.
Commas are also used to separate words in a list before using ‘and’.
They are also used for the name or title of a person being directly addressed by the sentence speaker.
Learn more - http://englishleap.com/punctuation/comma