Add ICD processing

First version, gotta admit, ugly implementation. Need to tie encoding
from datafile to decoding for processing (maybe use variables to name
the characters.