fix errors in specificity and sensitivity

It looks like the merge pervious merge uses my oldest code which was buggy :)

The pull request fixes
- getErrors is now a methods
- various erros in getErrors
erros in specificity and sensitivity
not local vars