added some stuff to init so that the code can support multiple instances of the morseNet object