added more comments to server.R