Support different materials using the geometry groups

This change makes the script go over the geometry groups, creating an usemtl statement for each one. The UV/Face generation was made to run per geometry group.