Electronic and vibrational excitations in carbon nanotubes