continued visibility computation part: implemented 'minim_toa', cleanup