Removed unneeded meshes list (We're only handling one mesh at a time)
Change to ANSI C file handling
Sprinkled const around for compiler optimization
Code cleanup