Slight changes to TTYserial to be more like an arduino and to allow for error checking.
Changes made to xbmain.cpp to account for this.