encode, working on others for transmitter
gen_lookup untested
oops
hamming_encoding seems to work