Added read file code and test data.