change call of mark_bad to match convention of other calls
allow single call of create_arc_dome for both sides
fix transposition bug when fitting the trace and sky lines