Iterate over all verts instead of recursing.

Recursion was not necessary and due to the amount of data that is
processed, could potentially exceed the maximum call stack size.
Fix for software that uses 3d tex coords

Allow 2d and 3d tex coords.
Remove useless code.

Remove code that was leftover from something early on and does nothing.
Fix group creation.

Evidently a function defined and called in the same statement is treated
as anonymous even if it is named, so move the call to the next line.
Remove debugOutput

All debugging output will just go to the console.
Remove unused pattern definition