[Adrian] minor modifications in serial and original parallel code to get input file from command line