corrected bad io handle
removed nasty bug causing fasta and fastq output to be mixed