Changed output method for tsv file. There were some problems with the
previous one and some byte arrays were written more than once. As far as
I could see it works fine now. I write String now, line by line instead
of chunks of 4096 bytes so it could be slower.