Fixes #15 - allow setting of threshold
Merge pull request #16 from jrcryer/master

Fixes #15 - allow setting of threshold