added NaN test for check_less_or_equal
added doc in code for check_less_or_equal