added comments to getData.R file

added comments to getData.R file