add newline
added send and recv
adding textmode switching
added textmode test