Add some comments and javadoc, and yarnclient is changed to
getRMDelegationToken