reads attributes from headr and data sets