Fixed incorrectly named instance variables
Fixed typo in code comments