Link categories to category codelist, fixes #3