Implemented XOR feature, but it has some bugs
Need to debug the corruption of the input file. Likely just an errant write, but the XOR logic has a bug as well.