Some work on structure comparing

Still lots of debug informations