added NaN test for check_greater
added doc in code for check_greater