fixed segfault when responding to -h
better handling when input file does not exist