New function: allowing output to file other than stadout and stderr
README updated for the new output-to-file function