updated the textoutput a bit and added an else statement for failing
tests. Also added "or equal to" operators for threshold checking