Replace 0 and 1 in main.c with EXIT_SUCCESS and EXIT_FAILURE

Fewer magic numbers and more clarity