add writting outfile in k2jysr