Adds err parameter to examples

This change brought to you by #18