refine data and type modules new structure and adapt ProjectData class.