added JSDoc comments to server files