Get rid of captureWithNewlines

makes `capture` capture newlines instead.
Eliminate a warning
Identify connections by local port instead of name
Eliminate two warnings
Explain