Now writes an error message if a lable is used twice in the fig file.