     @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()
 

  shareCurrentFile: (buffer) ->
    currentFile = buffer.getText()
    return if currentFile.length is 0
    size = Buffer.byteLength(currentFile, 'utf8')

    if size < 1000
      @pairingChannel.trigger 'client-share-whole-file', currentFile
    else
      chunks = chunkString(currentFile, 950)


    if data.deletion
      @buffer.delete oldRange
      actionArea = oldRange.start
    else if oldRange.containsRange(newRange)
      @buffer.setTextInRange oldRange, newText
      actionArea = oldRange.start
    else
      @buffer.insert newRange.start, newText
      actionArea = newRange.start

    @editor.scrollToBufferPosition(actionArea)
    @addMarker(actionArea.toArray()[0], data.colour)

    @triggerPush = true

