Removing indexselect.cpp couts, and adding join.cpp functionality