add flag to not write out the Error function. closes #5