Updated code for normals and texture coords

All vertices generated have proper normals (works with lighting :) ).
Texture coordinates should be correct too, but need to test them.