Update connection.m on controller

Add comments, and the sendData method to single device.