Text this: Energy Storage Optimization in Electric Vehicles for improving vehicles to grid Performance