Fix a handful of minor bugs
 - Tweak codeword printing
 - Increast max code length (u16->u32)
 - Replace for loop with do{}while;