Added codeword matrix to soft decoder