Added capability of dumping extra info about enumeration into a file.