Encapsulate loading of data into loadData.R