Make minor changes to generateName.c