Stanford researchers have discovered a novel method of doping nanowires (NW) and thin films (TF) that greatly improves surface area and performance. The sol-flame method is a fast, simple and low cost way to introduce dopants into NW and TF for a wide variety of applications.