The BABAR detector: Upgrades, operation and performance