modify examples and add test data reader