Code style fix.
Add setup & teardown support to specs.
Correctly handle situation if file can't be opened.

Fix #37
Merge branch 'issue/37'