Refactored Xor_string to be easier to read
Refactored the XU API