added NaN test for check_positive
added doc in code for check_positive