made a skeleton for the decoder
Errors self corrected