fixed visibility modifier of method getHeight, minor fixes