TECHNOLOGY FOCUS - INSTRUMENTATION AND TESTING - Preferred Device: In the device (D1), the substrate and layers form an organoelectronic device. The substrate and layers form an organic light-emitting diode device (OLED) or OPV device. The layer comprising the polythiophene is an OPV active layer; an OPV hole collection layer, an OLED hole injection layer; an OLED hole transport layer. The device is an organic field effect transistor (OFET). The dehalogenation is a debromination.    TECHNOLOGY FOCUS - ORGANIC CHEMISTRY - Preferred Components: The solvent is an organic solvent, water, non-halogenated solvent, and halogenated solvent.    TECHNOLOGY FOCUS - POLYMERS - Preferred Composition: In the composition, the dehalogenation step involves reducing a weight percentage of bromine. The dehalogenation is carried out with use of a magnesium reagent coupled with an activation agent; with use of a Grignard reagent coupled with an activation agent; with use of a Grignard reagent coupled with a lithium activation agent. The dehalogenation step is carried out as part of polymerization of the polythiophene. The dehalogenation step is carried out after polymerization of the polythiophene is complete but before workup of the polythiophene. The dehalogenation step is carried out after polymerization of the polythiophene is complete and after the polythiophene has been purified and redissolved. The dehalogenation is carried out to reduce halogen levels such that a parameter in an organic electronic device is improved by at least 10% or 25% or 50% or 75% as a result of dehalogenation and use of the dehalogenated polymer in the device. The polythiophene has halogen content before dehalogenation of at least 1000 ppm, and halogen content after dehalogenation of less than 100 ppm (by weight). The polythiophene is stable in the solvent from precipitation or gellation for at least seven days at 25 degrees C. Preferred Method: In the method (M1), the dehalogenating is carried out as the polythiophene is prepared by polymerization. The dehalogenating is carried out after the polythiophene has been prepared by polymerization and after the polythiophene has been purified and redissolved. The dehalogenating is carried out is carried out with use of a magnesium reagent coupled with an activation agent. The dehalogenation is a debromination. The polythiophene is prepared by a GRIM, Suzuki, Kumada, or Stille polymerization. The dehalogenation results in a halogen content of less than 100 ppm. The dehalogenation results in a bromine content of less than 100 ppm. Preferred Components: The polythiophene has a halogen content of less than 100 (preferably less than 10) ppm after dehalogenation. The polythiophene has a bromine content of less than 100 (preferably less than 10) ppm after dehalogenation. The polythiophene is a regioregular polythiophene; a 3,4-substituted dialkoxypolythiophene; and soluble polythiophene. The amount of the polythiophene is less than 3 wt.%. The polymer is a p-type material for the active layer. The polymer is or is not a polythiophene. The active layer comprises at least one fullerene derivative. The active layer comprises at least one fullerene derivative which has been derivatized with indene. The polymer is prepared by cross coupling polymerization. The polymer is prepared with use of monomer comprising at least one aromatic moiety. EXAMPLE - No suitable example given.