coding style cleanup in main.c