Added debug code to output state variables.
general cleanup - move defs to morse.h