Developed a pair of working corrector and generator. Adjusted module to fit it.  TODO: Update generation function in testbench.