Replace fail_if_err with unwrap

The fail_if_err macro can be much more succintly expressed as
result.unwrap() and has been removed accordingly.
Add basic example