readSampleData now outputs data to given array. Yay!