Abbreviations for academic degrees or titles that follow a name should be surrounded by commas. When preceding a name, however, the abbreviation (or title) must not be followed by a comma.
Enclose names between commas when speaking to someone directly (e.g., in dialogue). In general, do not use commas when talking about someone (instead of talking to someone).
When using "while" or "whereas" at the beginning of a sentence, place a comma after the first clause. In the middle of a sentence, place a comma before "whereas".
If you start a sentence with the conjunction "when", add a comma after the first clause. The comma is generally unnecessary if the when-clause is the second clause of the sentence.