Refactor main.c to take configuration on the command line instead of #defines.