Refactored Code
Added Javadoc, MaterialUtil, StructureResource