added NaN test for sqrt
added doc for sqrt