Mostly finished serialToFromText.

Needs testing with dummy network, and combination with Yu Yin to have
specifics and actual transmitted commands be correct