Changed config option name

num-read-checks-before-scale-down
num-write-checks-before-scale-down
Fixed problem with global variables
Restructured code for calculating consecutive checks
Removed unnecessary output