Improve loggin
Avoid infinite loops in decoding with errors
Remove buggy functions
Add new functions to allow other to xor ip and port
Have XOR and Integrity added on by default