added printer for search states
Added some new printing stuff to globals so that infos display in a
reasonable way.

Changed the better-p wrapper to assume wrapped cost functions.