add in thresholds
Merge pull request #13 from andymckay/master

add in thresholds