* rename pprint and improve matching loss * address comments and add another test * docstring for return values * moved comment location * no adding max_cost