comments and formatting
removed duplicates intersections
added todo