Minor modifications to mem and aln as well as changes to extract script