Merge pull request #84 from bd2019us/PATCH-83

Fixes #83, wrap FileWriter with BufferedWriter to reduce IO operations