added options to server and corrected content type, added comments to client
added example code