Modified amt merge script with replicated join etc.
Adding some more files.