Parallelize merging functionality, allowing specification of cores to use. Add initial infrastructure for command line calling.