Added self as parameter to all instance methods. Fixed issue with isKeyValid() func.