Optimized Material, added extra javadoc to MatrixFactory