Move decoding to c code
Pretty printout in help