initial hrv work. closes #2.