Changed output filename to filename.entities.txt