fixed clean_seqs, added family sorting code