Fix bug in stat_tool badevent filter and remove some unnecessary debug output. Bump
version to 3.7.0