refactor serial comm code to send voltage data to the gui
fixed merge conflicts