added function comments
basic function prototypes
intersect