created function to find source rdds in a batch
create segments for an rdd
rough draft of launch batch