1) Played a bit with line endings
2) Outputs correctly now with TABs as separators