added logging when examples fail
Merge pull request #496 from dcapwell/logexampleerrors

added logging when examples fail