add check for output file being "NA"

Now if either of the arguments passed are "NA" the demo code will
execute.