tidy-ed cr_search, should work now, added curl debugging param, #23