added pedestal in get_roi. bugfixes