code cleanup, improve do_connection
various fixes
redesign text input field to scroll horizontally, increase max string size