Add readData
Add test code and fix put widths