fixed Eext
Merge branch 'newErrFunc' of https://github.com/gotteric/master_MSQC into newErrFunc
weights added to the err