Improve variable naming in io.c