added callURL

Just making things a bit more DRY
searchBatch can return multiple objects
removed a left over artifact
fixed ternary if

Apparently evaluating the truthiness of undefined doesn't work as
expected in the ternery if statement
fixed vars
changed style to be consistent
a little bit of docs love
Small cleanup