add extract_reads.sh
refactor code
add extract-reads rule