* client: batch while sending commands - wait for responses before sending the next batch * fix comments * fix tests