added lots of try catches
small fix re. saving sameROI/Directory to config file