Found and Replaced a variable name. Added getNextChar function