refactored dynamic csv template and added test
Merge pull request #4 from bhennes2/cleanup

refactored dynamic csv template and added test