Minor improvements
Fun with hardcoded thresholds
A lot of changes. E.g. visualization tool implemented.