Connecting with R via RServe TCP/IP and some minor changes