Added way to set severities and ranges. Fixed some serious bugs. Updated docs and examples.