corrected missing includes.
added initial server code.