Examples, added err argument to callback functions where missing

This one had me stumped for hours! I've quickly gone through all of the examples and added err arguments for callbacks so the examples work again :)