Finished initial decoder, passes internal tests