some layeretaphi to channel and back conversion codes, some commented ICD unpacker code fragments