Merge pull request #3 from olt/error-handling

Improve error handling
fix example code for new error handling
handle errors from RegisterDatasource/Fonts