fixed 2 nasty bugs, caused by messy geometry. random freeze and bad vertex order. uv creation part rewritten from scratch