This commit seems to have broken the socket connection, and not sure why.
A diff of all files did not reveal, so I am reverting to make the changes
in smaller increments.
Revert "Program now reads instead of writes files."

This reverts commit 854d311cb107c84fdfea13044400ac8a4ead8658.
still working backward to a working revision.

Revert "Added the changes to main.xml for large layouts so fields visible on the"

This reverts commit 9f822f72d6270c6980fcad517de68ee86a1e9f9e.
updated layout again to fix connection not visible