Added codeword numbers and added the terminator bits