apparently argv[0] is the name of the executable file... good to know (;-)

changed to argv[1] now input filename does propagate from main