main.c styled to readable format