Reworked TcpListener

Fixed the TCP listener to keep reading until a newline.