closes #152, many formatting fixes for csv export

Fixes for formatting bugs discussed in yesterday's code review