Fix sample rate
fixed tests
Merge pull request #19 from liuggio/fix_v1

Fixes on v1 - Sample rate, and reduced algo