g: cleanup main.c