New function Write boolean registers

Writes boolean registers to the internal coils
new function

writes u_int16's to holding registers and input regiters
I don't know what changed here

I don't know what changed.
Functions added internall

Added functions that oversee the register addition to this function