Better file opening and closing in order to perform better on Windows. Added a whisper test file. 

When using Whisper on Windows, files were left open when Whisper crashed. We solved this problem using try/finally statements.

We also added a test_whisper.py file for quick and effective testing during development.