Merge pull request #468 from est77/master

Fixed PR #466 comments.
cosmetics.
Fixed cannot create materials bug.