Greg if you read it and you research it a big step to make a good mod. What you want is a sugueri the complex. Industrial Chemistry and chemical reactions to achieve quantitas used chemical reactors. This chemical reactor that intrudueixes mix the ingredients and create a new one. The mixture has to keep track of many variables. Which the most important are the pressure, temperature. On the other hand as we secundaires, pH, electronegativity, density, etc.. If mad reactor can control this will be fantastic so you could do your research. On the other hand a process is employed in the chemical process Solvay. By a strong electric current to separate the salt into Na + Cl-. As the mercury catalyst is used. (A process but very toxic untreated waste). Of Cl-will be done chlorine gas or acid chloride. I can do bleach NaOH or other bases.
I know it's a lot to ask but I might put you to work encouraged by the topic
As we say in the language (CATALAN)
ANIMS GREGORI