Main should return a value.
Made encoder work with non-power-of-2 inputs.
Remove leftover debugging code.
Decoder now has default value for enable.
State machine example: string matching.