Implemented readData and started making histograms