working on the material category implementation
some more fixes in the material category framework
some more fixes and implementations
working version of material category framework