split morse code functions into header file