update calculation of outErr
Merge pull request #7 from imacneill/master

update calculation of outErr