Working Code, only the plotting remains

IT finds COM for all the cells that are part of edge output . I will
add the output in a good looking form next. But, overall good progress
was made today.