added NaN test for check_less
added doc in code for check_less