Process, apparatus, compositions and application modes are provided that relate to nanofiber spinning without the use of superacids in the spinning solution. The methods employ either acids or bases for a flocculation solution. The advances disclosed therein enable the use of nanofibers, including carbon nanotubes, for a variety of applications including, but not limited to, electromechanical actuators, supercapacitors, electronic textiles, and in devices for electrical energy harvesting.