The use of LiIon batteries was a logical next step as well. Manufacturing issues in the first sets of batteries required them to re-engineer the safety system around them, and the vendors that created the batteries now have stricter standards to adhere to.
None of these issues currently compromise the safety of the airframes.
It's easy to pile-on after incidents occur, but these are machines made by people. People make mistakes all of the time. You wouldn't not use a computer because it had bugs. The likelihood of you falling out of the sky in a modern airliner is still vanishingly small and is getting smaller every day.