added function to do instancing
Merge pull request #123 from krux02/master

added function to do instancing