add comments to scheduler file for clarity