Added comments to JoinOptimizer