to_hex is only necessary for test

This code has been grossly simplified by using `Base.encode16/2`
Just use `if` and `else`
Update bitstring modifiers