Merge branch 'master' into Rect_detect

Pulled abs() fix from master into rect_detect
Added max, cleaned up extraneous rectangle code
Merge branch 'Rect_detect' of github.com:chipbuster/imad_R into Rect_detect