Billions of dollars are being spent to improve safety, durability, power capabilities and charging times.