removed redundant texcoord functions.
removed direct fseek/fclose calls.