Fixed some spelling errors

There were a few variable names that were spelled wrong, and one class method missing the self parameter.