Re: caused by human error and inattention
Well the fact that the software is written by humans is not that big issue... because the software for driving a car is rather simple. You'd be surprised, but there is not much in there on the algorithmic part.
The point why autonomous vehicles are better than humans is not that there is some clever software inside - one major reason is that they have better senses...eh sensors... and that their calculation is more accurate. Driving itself is basically keeping the steering wheel so it follows the road + avoid collisions with others.