added flushFaceGrp() before closing file