Prettify csv output algorithm.
Merge pull request #1 from korun/patch-1

Prettify csv output algorithm.