[minor] Fixed two typos, one method name misspelled and one javadoc