adds basic tcp server, rearranges example scripts