move getInputFile to run in main
.
.
.
fixed compile error