Fix argument passing to the main function

The new main function now uses numbers instead of characters to select
which function to call, however arguments in the Makefile were still
passed the old style. Also the passed argument has not been properly
converted in order to be used. Fix these issues.