added xThread, tests, x_ methods.