IDEX-1048: refactored addSubscription and addMember.Added javadoc.