makeid now produces UUIDs, and keeps track of them in an array to ensure uniqueness