add check for file not found in semi + fix small errors in get_regions & display_errors + making get_phot more general