Added err arguments

OpenCV functions now seem to return (err, val) style arguments. Updated example to handle
Added err arguments

Added err arguments to callback functions
Merge pull request #54 from smoodiver/master

Examples, added err argument to callback functions where missing