adds specification of output file
writes output to specified output file