Improved file reading.
Finished aquiring data, sum of digits, length and original index.