introduced min_r and min_d; added sequence_motif.py