XOR adjusted to be used with the node instead of a general unsigned int.
Debug tracing improved
Fixed missing variable initialisation