minor updates to main-subopt-overlap to accept distance functions from command line. cleaned up error when destructuring maps incorrectly.