add comments to backend code