predictor added and minor other changes
trick for helping with matrix E
trick for helping with matrix E