remove all extra commas from the code examples

It seems that by copying and pasting lines in the examples, almost all had an extra comma at the end.

As we all know it is a good practice not to do that.. or if not, at least don't rise confusion to others.