use a more dynamic parser for argv[0]

Instead of the writing out the logic for each valid argv[0] use a while
loop and str array of valid names.
put instantion and declaration on one line