Right now the decoder code gives nonsense output for the input, so it needs to be looked at again to make sure that it makes sense.