Update Rank.java

add comments to implemeted methods