Nanotube structure and electronic properties probed by scanning tunneling microscopy