Major changes to functionality. ROI area checking. Several bugs fixed.