improved logging and fixed bugs with negative values and 100
added tests and adjusted value correction when passed number > 100 or < -100