1) In the paragraph starting at line 814, it seems that you first refer to a function as g, then change it to f. Since the notation keeps referring to f, I changed the g for f in lines 815 and 816.
2) At line 844, the formula refers to entirely negative regions, but the indicator function evaluated at entirely positive ones. I changed the sign.
I think I found two typos:
1) In the paragraph starting at line 814, it seems that you first refer to a function as g, then change it to f. Since the notation keeps referring to f, I changed the g for f in lines 815 and 816.
2) At line 844, the formula refers to entirely negative regions, but the indicator function evaluated at entirely positive ones. I changed the sign.