Resets output buffer before each file group. Fixes #30
Merge pull request #31 from jayphelps/master

Resets output buffer before each file group. Fixes #30