Ground state and excitations of quantum dots with magnetic impurities