Read data file directly into a numpy array. Also some formatting