Finish reading file to initialize a GMM object.