Text this: Controlling dopant rich layers in solar cells