(about restrictive and nonrestrictive sentence)
The comma is a tool you can use to keep the relationship between the parts of your sentence clear to your reader. This is especially important if you have written a sentence that brings a lot of pieces of information together and creates a relationship between them.
For example:
Restrictive: He is a gentleman who never breaks his word.
Nonrestrictive: He is a gentleman, who never breaks his word.