Removes a debugging line.
Adds a server socket listener 'cancel' and its respective function cancel_invitation.
Adds comments for debugging.