Added the id <-> name mapping class. The code extracted from convert_* functions is very repetitive, but I will fix that later.