added namedtuples, made read_fasta a function