added readfile and test data