Implements most of the MD3 parsing