rdoc for some of the methods in JoinDependency

JoinDependency and it's family has complex code. Added rdoc
helps understand what's going on a bit more clearly.