Integrated system for the study and menagement of the historical buildings