Added decoding from byte* and a main that use the buffer