download.sh
Counting RR intervals was totally wrong.