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
Correctly install script on Windows

Implementation stolen wholesale from
http://matthew-brett.github.io/pydagogue/installing_scripts.html
Merge pull request #17 from Lukasa/windows

Correctly install script on Windows