Create default.json
Implement thresholds file
Added error catching
Merge pull request #8 from chelmi98/thresholds

Fixes #2