Initial commit of distortion-compensation code.