Added material assignment based on vertex groups

Now need to test it.
Random materials based on vertex groups now works