added xIsNan, tests, x_ methods