added xEssentials main class into the api