added NaN test for ibeta
added doc in code for ibeta