     @pairingChannel.trigger 'client-disconnected', {colour: @markerColour}
     setTimeout((=>
       @pusher.disconnect()
-      @editorListeners.dispose()
+      @editorListeners.dispose() #remove editor event listeners
       )
     ,500)
-    _.each @friendColours, (colour) => @clearMarkers(colour)
+    _.each @friendColours, (colour) => @clearMarkers(colour) #get rid of colours
     atom.views.getView(@editor).removeAttribute('id')
     @hidePanel()
 


    if data.deletion
      @buffer.delete oldRange
      @editor.scrollToBufferPosition(oldRange.start)
      @addMarker oldRange.start.toArray()[0], data.colour
    else if oldRange.containsRange(newRange)
      @buffer.setTextInRange oldRange, newText
      @editor.scrollToBufferPosition(oldRange.start)
      @addMarker oldRange.start.toArray()[0], data.colour
    else
      @buffer.insert newRange.start, newText
      @editor.scrollToBufferPosition(newRange.start)
      @addMarker(newRange.end.toArray()[0], data.colour)

    @triggerPush = true



      @joinPanel.hide()

      atom.workspace.open().then => @startPairing() #starts a new tab to join pairing session

  startSession: ->
    @getKeysFromConfig()
