Changed the way intersect works + added an example + test file