assigning input arguments to filename and header; #2