A research team has developed cost-effective technology to synthesize sulfur-doped and nitrogen-doped graphenes which can be applied as high performance electrodes for secondary batteries and fuel cells.