Updated ImportGaps call and export code on save