Reworked opt module (opt_search.py), obj_func opt works, now need to add search