First version of the raw-data decoding class