added parameter output to stdout and params.txt