Was driving when the car just shut off completely, no dash lights no nothing, popped the hood and the positive battery terminal somehow came loose, put it back in and went to work. After it started just fine, was driving home when the accessport said it’s gonna shut off cause the voltage was too low. Got home battery light came on and the headlights started dimming car would not start and would just crank slowly then click. Got a new battery under warranty and started right up. Battery light will come on at idle but as soon as I rev it it will go away. Voltage on accesport was at 14.85 and slowly dropping. 1 hour it was at 14.70. Car off voltage read 10.60.. it read that with the old battery too. I scanned the car and it read P065C Generator Mechanical Performance. Is it possible I took out the alternator cause the positive terminal was loose? Car has 62K