Use real division in computing confidence
Close open test files
Merge pull request #16 from miso-belica/warnings_fix

Fix warnings: classic int division & unclosed file