sendCommand.m modified with In/Out Stream
sendCommand.m added stream option