added api functions to set output files

one for normal output and one for error output