WOERK IN PROGRESS for the multiple output directory. And the inclusion of the borders in the output