Implemented the decoder.
Fixed OCR.