fasta converter refactor; split to functions;