Rename importcodelists, add generateCodelists function