Changed the CSV writer to use append binary vs append. This will remove the line endings that cause the extra lines.
Also moved the instant of the writer out of the loop.
Corrects Issue #35
Merge branch 'hotfix/Issue_#35_CSV_extra_lines'