almost working
Basic merge
Added capability for multiple runs