Add error/exception logging. Simplify API.
Update example.php
Bump VERSION to 2.0
Merge branch 'release/2.0'