write.c, lookup table.c: cleanup