create object to read data from codewords

rename some objects