added comments to R files