Text to serial pull

Made text to serial, added keyboard input.

Also some changes to R code which I guess I accidentally did in this branch