Added write(string) function to serial and socket...