Merge branch 'develop' into feature/c_api
finalize driver implementation for c api
catch exceptions at c api