Java stuff to manipulate and load data sets