Jr., Sr., III

Q. John Smith Jr. or John Smith, Jr.? John Smith III or John Smith, III?

Q. If names are listed last name first and first name last, after which name does the suffix (Jr., Sr., III, etc.) follow? How is this formatted?