now reads input into a buffer and splits commands (after \r\n) from that buffer as soon as it recognizes them.