Extract file writing for easier testing
Fix argument passing
Add tests
Merge branch 'fix-argument-passing'
Update README for v0.2.1
Bump version: 0.2.0 → 0.2.1