All I know is the original author was probably a hacker from Finland and it was originally written in x86 assembly. This is my modernized implementation of his algorithm.
As for solving the BUGFIX-66 puzzles, to fix the bug in the compressor, add
to = append(to, 0)
on the line after loc = len(to)
The original code was not inserting a placeholder for every control byte.To fix the decompressor, add
at++
on the line after ctrl := int(from[at])
The original code was not stepping past a control byte after loading it.