Added Apache 2.0 License
Add verification result check

Without the check an uncaught exception is raised in case of
a verification failure.