Fixed scaleshw inside getScales, added xml importation of pyramid for debug