refactored with variables
writing Morse library, not working yet