minor docstring and scope fixes for lib/checks