threaded

adjusted for threads contains client and server now as well as quit on
"q"