Added comments to server code.