made output file name optional

now defaults to input filename with target extension