MORSE_CW demod, integer math and gen-ng