Prospector: fix typos; add logging; better return checking.