Add comments to code that I was trying to understand. Hopefully will save others time.
Add comments to code that I was trying to understand.
Hopefully will save others time.

Someone who understands this better might check for correctness.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase