added comments to server.R