made binary number unpacking compatible with signed and unsigned 1, 2 and 4 byte numbers as well as 2 byte signed