modified a couple comments in the code (inverted is not the same as inverse)