18650 cells are a commodity component. Combining thousands of them into an effective battery pack is a very complex engineering task. Tesla have filed hundreds of patents relating to pack design and battery management. They have several just relating to "thermal runaway mitigation", which is a fancy euphemism for "stopping the battery pack from catching fire". It's not sexy, but it's crucial stuff.