Added MaterialManager and loading materials from external files.