R and Serial stuff changes

Main stuff that allows data flow to work