Fixed bug with fasta output. Last line in any buffered write was too long.