added writing results into output file, orange-tool