add comments, more tests to esgsearch