added NaN test for check_bounded
added doc in code for check_bounded