Minor changes in polyhedron transfroming, added debug code