polished and tested build.ar.model() and fill_holes()