Refactoring of matmap..
Fix reloadmap
Refactor MatMAp
Refactor material testing on map
Small changes in operations with geom primitives