Performance and upgrade plans for the CMS detector