added case one to overlap detection, now throws error if no overlap
changes i made to imad.h
merge conflicts resolved
Merge branch 'Rect_detect' of https://github.com/chipbuster/imad_R into Rect_detect