Coverity fixes;

Code Coverity bugs were fixed;
Coverity Scan badge

Coverity Scan badge added to the README;