Arduino UNO and CUI encoder (SPI )

I figured it out,

So what i was receiving was 3 bytes, 4bits, 8bits, and a constant number 16.

I used the 16 as my reference point because after number 16 I get 4bits and 8bits always

So my codes work fine now.

If anyone stuck with cui inc encoder I can help.